#!/usr/bin/env python
# -*- coding: utf8 -*-



DEBUG VOISIN

#texte proba
        for i in range(0,6):
            #debig
            hexVoisins = self.listeHexagone.getVoisins(hex,i)
            if hexVoisins[0] != None:
                valeur1 = hexVoisins[0].valeur
            else:
                valeur1 = -1
            if hexVoisins[1] != None:
                valeur2 = hexVoisins[1].valeur
            else:
                valeur2 = -1
            valeurPROBA = "%d %d" % (valeur1,valeur2)
            #valeurPROBA = "%d" % hex.noeuds[i]
            self.ctx.set_source_rgb(0, 0, 0)
            self.ctx.select_font_face("Georgia",cairo.FONT_SLANT_NORMAL, cairo.FONT_WEIGHT_BOLD)
            self.ctx.set_font_size(15)
            x_bearing, y_bearing, width, height = self.ctx.text_extents(valeurPROBA)[:4]
            
            
            if i == 0:
                self.dessineColonie(valeursX[i],valeursY[i])
                self.ctx.move_to(valeursX[i]+15-(width/2 + x_bearing),valeursY[i]+15- (height/2 + y_bearing))
            if i == 1:
                self.dessineColonie(valeursX[i]-30,valeursY[i])
                self.ctx.move_to(valeursX[i]-30+15-(width/2 + x_bearing),valeursY[i]+15- (height/2 + y_bearing))
            if i == 2:
                self.dessineColonie(valeursX[i]-40,valeursY[i]-15)
                self.ctx.move_to(valeursX[i]-40+15-(width/2 + x_bearing),valeursY[i]-15+15- (height/2 + y_bearing))
            if i == 3:
                self.dessineColonie(valeursX[i]-30,valeursY[i]-30)
                self.ctx.move_to(valeursX[i]-30+15-(width/2 + x_bearing),valeursY[i]-30+15- (height/2 + y_bearing))
            if i == 4:
                self.dessineColonie(valeursX[i],valeursY[i]-30)
                self.ctx.move_to(valeursX[i]+15-(width/2 + x_bearing),valeursY[i]-30+15- (height/2 + y_bearing))
            if i == 5:
                self.dessineColonie(valeursX[i]+15,valeursY[i]-15)
                self.ctx.move_to(valeursX[i]+15+15-(width/2 + x_bearing),valeursY[i]-15+15- (height/2 + y_bearing))
            self.ctx.show_text(valeurPROBA)
            #valeurPROBA = "%d" % hex.noeuds[i]
            #self.ctx.set_source_rgb(0, 0, 0)
            #self.ctx.select_font_face("Georgia",cairo.FONT_SLANT_NORMAL, cairo.FONT_WEIGHT_BOLD)
            #self.ctx.set_font_size(15)
            #x_bearing, y_bearing, width, height = self.ctx.text_extents(valeurPROBA)[:4]
            #self.ctx.move_to(valeursX[i]-(width/2 + x_bearing),valeursY[i]- (height/2 + y_bearing))
            #self.ctx.show_text(valeurPROBA)
